export enum connectionStateEnum {
  DRAFT = 'draft',
  ONGOING = 'ongoing',
  REJECTED = 'rejected',
  CANCELLED = 'cancelled',
}

export const connectionStateMap = {
  [connectionStateEnum.DRAFT]: '草稿',
  [connectionStateEnum.ONGOING]: '进行中',
  [connectionStateEnum.REJECTED]: '已拒绝',
  [connectionStateEnum.CANCELLED]: '已作废',
};

export const connectionStateOptions = Object.entries(connectionStateMap).map(([key, value]) => ({ label: value, value: key }));